//
//  BRHud.h
//  BrezzeSaaS
//
//  Created by IOS on 2021/9/1.
//  Copyright © 2021 Brezze GWG. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "QMUITips.h"

NS_ASSUME_NONNULL_BEGIN

/*
 * 网络请求枚举类型
 */
typedef enum {
    BRHudLoding,
    BRHudSucced,
    BRHudError,
    BRHudInfo,
    BRHudCustom,
} BRHUD_TYPE;

@interface BRHud : NSObject

/// loding提示，默认加载在window
+ (QMUITips *)showHud;
/// 文本提示，默认加载在window
/// @param text 提示内容
+ (QMUITips *)showTips:(NSString *)text;
/// 转圈圈提示
+ (QMUITips *)showInView:(UIView *)parentView;
/// 文本提示
/// @param text 提示的内容
/// @param parentView 展示的view
+ (QMUITips *)show:(NSString *)text inView:(UIView *)parentView;
/// 隐藏所有hud
+ (void)hidden;
+ (void)hiddenInView:(UIView *)parentView;

/// 弹出自动隐藏的hud（未启用）
/// @param imgName 图片
/// @param title 标题
/// @param subTitle 描述
/// @param parentView 展示的view
+ (void)showAuto:(NSString *)imgName title:(NSString *)title subTitle:(NSString *)subTitle  inView:(UIView *)parentView;

+ (void)showAuto:(NSString *)text inView:(UIView *)parentView hideAfterDelay:(NSTimeInterval)time;
/// 弹出自动隐藏的hud 文本 2s
/// @param text title
/// @param parentView 展示的view
+ (void)showAuto:(NSString *)text inView:(UIView *)parentView;
/// 弹出自动隐藏的成功文本hud 文本 2s
/// @param parentView 展示的view
+ (void)showAutoSuccInView:(UIView *)parentView;
/// 弹出自动隐藏的hud 文本 2s
/// @param text title
+ (void)showAuto:(NSString *)text;

/// 自定义动画加载
+ (QMUITips *)showLoad:(NSString *)title inView:(UIView *)parentView;

+ (QMUITips *)showLoad:(NSString *)title hideAfterDelay:(NSInteger)time inView:(UIView *)parentView;

/// 图文
+ (QMUITips *)showLoadOver:(NSString *)title img:(NSString *)imgStr hideAfterDelay:(NSInteger)time inView:(UIView *)parentView;
/// 图文 默认2s
+ (QMUITips *)showLoadOverSucc:(NSString *)title inView:(UIView *)parentView ;

@end

NS_ASSUME_NONNULL_END
